.works-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;

  .loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;

    .loading-text {
      margin-top: 16px;
      color: #666;
      font-size: 16px;
    }
  }

  .works-tabs {
    margin: 24px 0;

    .ant-tabs-tab {
      font-size: 16px;
      font-weight: 500;
    }

    .ant-tabs-content-holder {
      padding: 24px 0;
    }
  }

  .document-upload-area {
    .document-uploader {
      margin-bottom: 24px;

      .ant-upload-drag {
        border: 2px dashed #d9d9d9;
        border-radius: 12px;
        background: #fafafa;
        transition: all 0.3s ease;

        &:hover {
          border-color: #1890ff;
          background: #f0f8ff;
        }
      }

      .ant-upload-text {
        font-size: 18px;
        font-weight: 600;
        color: #333;
        margin: 16px 0 8px 0;
      }

      .ant-upload-hint {
        color: #666;
        font-size: 14px;
        margin: 4px 0;
      }
    }

    .uploaded-documents {
      margin-top: 24px;
      padding: 16px;
      background: #f8f9fa;
      border-radius: 8px;
      border: 1px solid #e8e8e8;

      h4 {
        margin-bottom: 16px;
        color: #1890ff;
      }
    }
  }

  .action-buttons {
    margin: 32px 0 24px 0;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e8e8e8;

    .ant-btn {
      height: 48px;
      font-size: 16px;
      font-weight: 500;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;

      &.ant-btn-primary {
        background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
        border: none;
        box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);

        &:hover {
          background: linear-gradient(135deg, #096dd9 0%, #0050b3 100%);
          transform: translateY(-2px);
          box-shadow: 0 6px 16px rgba(24, 144, 255, 0.4);
        }
      }

      &.ant-btn-dashed {
        border: 2px dashed #d9d9d9;
        background: #fff;

        &:hover {
          border-color: #1890ff;
          color: #1890ff;
        }
      }
    }
  }

  .cover-preview {
    margin-top: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e8e8e8;

    .cover-image {
      max-width: 300px;
      max-height: 200px;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      object-fit: cover;
    }
  }

  .attachments-section {
    margin-top: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e8e8e8;

    .section-title {
      margin-bottom: 16px;
      color: #1890ff;
    }

    .attachment-item {
      margin-bottom: 12px;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

      &:last-child {
        margin-bottom: 0;
      }

      .attachment-info {
        .attachment-name {
          font-weight: 500;
          color: #333;
          margin-bottom: 4px;
        }

        .attachment-size {
          font-size: 12px;
          color: #666;
        }
      }

      .attachment-actions {
        .ant-btn-link {
          padding: 0 8px;
          height: auto;
          font-size: 12px;
        }
      }
    }
  }

  // 附件文件列表样式
  .attachment-files-list {
    margin-top: 16px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8e8e8;

    h5 {
      margin-bottom: 12px;
      color: #1890ff;
      font-weight: 600;
    }

    .ant-card {
      border-radius: 6px;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
      transition: all 0.3s ease;

      &:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        transform: translateY(-1px);
      }
    }
  }

  .preview-modal {
    .preview-content {
      max-height: 70vh;
      overflow-y: auto;
      padding: 20px;
      background: #fff;
      border-radius: 8px;
      border: 1px solid #e8e8e8;

      h1 {
        color: #1890ff;
        text-align: center;
        margin-bottom: 24px;
        padding-bottom: 12px;
        border-bottom: 2px solid #e8e8e8;
      }

      img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      }

      p {
        line-height: 1.8;
        margin-bottom: 16px;
        text-align: justify;
      }
    }
  }
}

// 响应式设计
@media (max-width: 768px) {
  .works-container {
    padding: 16px;

    .action-buttons {
      .ant-col {
        margin-bottom: 12px;
      }
    }

    .cover-preview .cover-image {
      max-width: 100%;
    }
  }
}

// 暗色主题支持
@media (prefers-color-scheme: dark) {
  .works-container {
    .action-buttons,
    .cover-preview,
    .attachments-section {
      background: #1f1f1f;
      border-color: #434343;
    }

    .document-upload-area .uploaded-documents {
      background: #1f1f1f;
      border-color: #434343;
    }

    .preview-modal .preview-content {
      background: #1f1f1f;
      border-color: #434343;
      color: #fff;
    }
  }
}